//
//  SGWindowController.h
//  iPing
//
//  Created by Thomas on 8/11/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "StoryLibraryView.h"
#import "StoryControllerView.h"
#import "StoryBrowserView.h"

@interface SGWindowController : NSWindowController {
	IBOutlet NSView			*myTargetView;
	NSViewController		*myCurrentViewController;
	NSManagedObjectContext	*managedObjectContext;
	NSMutableArray			*addedObjects;
	IBOutlet NSView			*searchFieldOutlet;
	IBOutlet NSSearchField	*searchFields;
	IBOutlet NSPopUpButton	*popUpButton;
	NSMutableData			*data;
	NSString				*PRS505Device;
	NSString				*PRS505Media;
	NSMutableDictionary		*DeviceDict;
	
	
}
@property (readwrite, assign) NSManagedObjectContext *managedObjectContext;
- (IBAction)setSearchCategoryFrom:(NSMenuItem *)menuItem;
- (IBAction)search:(id)sender;
-(IBAction)selectView:(id)pId;
-(NSViewController *)viewController;

@end
